﻿@model Abhimanu.Mobile.Models.Profile
@{
    ViewBag.Title = "Update Profile Info";
    Layout = "~/Views/Shared/M/_FacultyLayout.cshtml";
    List<SelectListItem> admissionYears = new List<SelectListItem>();
    admissionYears.Add(new SelectListItem() { Text = "2013", Value = "2013" });
    admissionYears.Add(new SelectListItem() { Text = "2012", Value = "2012" });
    admissionYears.Add(new SelectListItem() { Text = "2011", Value = "2011" });
    admissionYears.Add(new SelectListItem() { Text = "2010", Value = "2010" });
    admissionYears.Add(new SelectListItem() { Text = "2009", Value = "2009" });
    admissionYears.Add(new SelectListItem() { Text = "2008", Value = "2008" });
    admissionYears.Add(new SelectListItem() { Text = "2007", Value = "2007" });
    admissionYears.Add(new SelectListItem() { Text = "2006", Value = "2006" });

    List<SelectListItem> centers = new List<SelectListItem>();
    centers.Add(new SelectListItem() { Text = "Chandigarh", Value = "Chandigarh" });
    centers.Add(new SelectListItem() { Text = "Ludhiana", Value = "Ludhiana" });
    
}
<a data-role="button" class="no-Ajax"   style="float:left" href="@Url.Action("FacultyProfileHome", "Account")">
    Back</a>
<br />
<br />
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account update was unsuccessful. Please correct the errors and try again.")
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Update profile info</li>
        <li>
            @Html.LabelFor(m => m.FirstName)
            @Html.TextBoxFor(m => m.FirstName, new { required = "required" })
            @Html.ValidationMessageFor(m => m.FirstName)
        </li>
        <li>@Html.LabelFor(m => m.LastName)
            @Html.TextBoxFor(m => m.LastName, new { required = "required" })
            @Html.ValidationMessageFor(m => m.LastName)</li>
        <li>@Html.LabelFor(m => m.Email)
            @Html.TextBoxFor(m => m.Email, new { required = "required" })
            @Html.ValidationMessageFor(m => m.Email)
        </li>
        <li>
            @Html.LabelFor(m => m.AdmissionYear)
            @Html.DropDownListFor(m => m.AdmissionYear, admissionYears, new { required = "required" })
            @Html.ValidationMessageFor(m => m.AdmissionYear)
        </li>
        <li>
            @Html.LabelFor(m => m.Center)
            @Html.DropDownListFor(m => m.Center, centers, new { required = "required" })
            @Html.ValidationMessageFor(m => m.Center)
        </li>
    </ul>
           
    <input type="submit" value="Update" data-theme="a" data-form="ui-btn-up-a" />
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
